#include "circ.h"

int main(void)
{
	int a[8] = {1, 2, 3, 4, 5, 6, 7, 8};
	int err;
	struct node_st *first = NULL;
	for (int i = 0; i < sizeof(a) / sizeof(a[0]); i++)
	{
		err = circ_insert(&first, a[i]);
		if (err == -1)
			printf("malloc内存失败\n");
	}
	circ_show(first);
	printf("\n");
	circ_remove(&first, 3);
	circ_show(first);
	printf("\n");
	circ_remove(&first, 1);
	circ_show(first);
	printf("\n");
	return 0;
}